<?php
namespace classes\bank;
use classes\bank\BankProduct;

class Deposit extends BankProduct
{	
	
	public function __construct($accountNumber, $yearlyInterestRate, $periodInMonts, $nalichnost){
	
		echo "<p>Add deposit Number:$accountNumber for $nalichnost lv</p>";
		parent::__construct($accountNumber, $yearlyInterestRate, $periodInMonts, $nalichnost);
			
	}
	
	public function showInfo(){
		
		echo "<b>Report for Deposit {$this->getAccountNumber()}:</b><br>";
		parent::showInfo();
	}
}

?>